package cn.zmall.search;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubboConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

/**
 * @Author BinBini
 * @Date 2020/11/4 15:07
 * @Version 1.0
 */
@MapperScan("cn.zmall.search.mapper")
@ImportResource(locations = {"classpath:spring/applicationContext-service.xml", "classpath:spring/applicationContext-redis.xml"})
@SpringBootApplication(scanBasePackages = {"cn.zmall.common.jedis"})
@EnableDubboConfig
public class SearchServiceApplication {

    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run( SearchServiceApplication.class, args );
    }

}
